$.ajax({
    url:'/shopping/allGoods.do',
    type:'GET',
    dataType:'JSON',
    success:function (res) {
        $(".goods").empty();
        var str='';
        $.each(res,function (i,v) {
            str+='<div class="col-md-3"><div class="msp thumbnail"><a href="#"><img src="img/'
                +v.photo+'" alt=""></a><p>'
                +v.price+'</p><p>'
                +v.title+'</p><p>'
                +v.addr+'</p></div></div>';
        });
        $(".goods").append(str);
    }
})